Report Meta Information Table
To add this table via a script, use TPTReport.MetaInformation()
. You can add additional content to the Report Meta Information table using the script.
# generate a meta Information table
meta_table = TPTReport.MetaInformation()
# add additional information
TPTReport.addMetaInformationRow("new row","additional information")
TPTReport.addMetaInformationRow("another row","${tpt.rootdir}")
# add new section to the report
section = TPTReport.Section("Meta Information")
section.add(meta_table)
TPTReport.add(section)
''' add test case attributes to the report using the pattern "TPTReport.addMetaInformation("<attribute name>", "${tpt.scenario.<attribute>.}")'''
TPTReport.addMetaInformationRow("Precondition", "${tpt.scenario.precondition}")
TPTReport.addMetaInformationRow("Passcondition", "${tpt.scenario.passcondition}" )
TPTReport.addMetaInformationRow("Specification", "${tpt.scenario.specification}")
See Test Case-specific Variables.
Any information added with addMetaInformationRow
will also be added to all Report Meta Information tables in the report.
To set up the meta information using a graphical user interface, see Assesslets - Report Meta Information.